package com.example.module_enterprise.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.module_enterprise.R
import com.yuwei.http.entity.EnterpriseEntityItem

class EnterpriseAdapter:BaseQuickAdapter<EnterpriseEntityItem,BaseViewHolder>(R.layout.enterprise_item) {
    override fun convert(holder: BaseViewHolder, item: EnterpriseEntityItem) {
        holder.setText(R.id.enterprise_text1,item.name)
        holder.setText(R.id.enterprise_text2,"行业类型: "+item.industryType)
        holder.setText(R.id.enterprise_text3,"行业覆盖: 智慧城市解决方案")
        holder.setText(R.id.enterprise_text4,"企业所属地区: "+item.address)
    }
}